package PHANVANVUONG.OOP.HOMEWORK.EX05;

public class Models {
	public boolean checkAge(Person p){
		if(p.getAge()>=19){
			if(p.getGender()==1){
				if(p.getAge()>=21)
					return true;
				return false;
			}
			else
				return true;
		}
		return false;
	}
	public boolean checkRela(Person p){
		if(p.getRela()==2||p.getRela()==3)
			return true;
		return false;
	}
}
